<?php
@require_once("config.php");
$user_id=$_GET["user_id"];
$user_name=$_GET["user_name"];
$user_phone=$_GET["user_phone"];
$user_address=$_GET["user_address"];
$user_phone2=$_GET["user_phone2"];
$user_name2=$_GET["user_name2"];
mysql_query("update useraddress set user_id=$user_id,user_name=$user_name,user_phone=$user_phone,user_address=$user_address where user_phone='$user_phone2' and user_name='$user_name2'");
$arr=array();
if(mysql_affected_rows()>0){
  $arr["status"]=true;
  $arr["msg"]="编辑成功";
}
else{
   $arr["status"]=false;
   $arr["msg"]="编辑失败";   
}
echo json_encode($arr);
?>